#!/bin/bash
###
 # @file            rpm2cpio.sh
 # @author          mening
 # @date            2024-01-15 11:20:16
 # @copyright       Copyright (c) 2024 by 北京长扬科技有限公司, ALL Rights Reserved.
 # @details         从上层目录获取所有rpm包，并解压到当前目录下,最开始的shell脚本
###

while read line
do
    rpm2cpio ../rpm-file/${line} | cpio -div
done < ../cen7-rpm.txt